plugins {
    id("org.jetbrains.kotlin.jvm") version "1.8.10"
    id("maven-publish")
}

repositories {
    mavenCentral()
}

dependencies {
    testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")

    testImplementation("org.junit.jupiter:junit-jupiter-engine:5.9.1")

    api("org.apache.commons:commons-math3:3.6.1")

    implementation("com.google.guava:guava:31.1-jre")
}

tasks.named<Test>("test") {
    useJUnitPlatform()
}

group = "org.example"
version = "1.0"

publishing {
    publications {
        create<MavenPublication>("myLibrary") {
            from(components["java"])
        }
    }

    repositories {
        maven {
            name = "myRepo"
            url = uri(layout.buildDirectory.dir("repo"))
        }
    }
}